package com.sesame.controller;

import kim.sesame.common.web.annotation.IgnoreAuthCheck;
import kim.sesame.common.web.controller.AbstractWebController;
import kim.sesame.common.result.ApiResult;
import lombok.extern.apachecommons.CommonsLog;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CommonsLog
@RestController
@RequestMapping("/index")
public class IndexController extends AbstractWebController {

    @IgnoreAuthCheck
    @RequestMapping("/test1")
    public ApiResult test1(String name) {
        return success(name);
    }

    @RequestMapping("/test2")
    public ApiResult test2(String name) {
        return success(name);
    }
}
